* {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    outline: none;
    text-decoration:none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html, body {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    background: white;
}

ul,ol,li {
    list-style:none;
}
input,textarea,select {
    resize:none; outline:none; vertical-align:middle;
}
/*iscroll*/
.wrapper {
    position: absolute;
    width: 100%;
    z-index: 1;
    top: 0px;
    left: 0;
    overflow: hidden;
}

#scroller {
    position: absolute;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    width: 100%;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
    text-size-adjust: none;
}

/*重写对话框*/
#dm_lib_popup_msg {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}
.dm_lib_popup_button.dm_lib_confirm {
    color: #ff5455;
}

/*自定义*/
html, body {
    background: #f0f0f0;
}

/*.dm_page {*/
/*}*/

.dm_header {
    width: 100%;
    height: 44px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}
.dm_footer {
    width: 100%;
    height: 44px;
    position: fixed;
    left: 0;
    bottom: 0;
    background: #f5f5f5;
    z-index: 1000;
    text-align: center;
}
.dm_content {
    position: relative;
    z-index: 999;
}
.dm_footer:before{
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    top: 0;
    background: #ddd;
    display: block;
}
#wrapper {
    bottom: 44px;
    background: #f0f0f0;
}
/*弹出框背景容器*/
.dm_alert {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
}
.dm_alert_container {
    width: 80%;
    max-width: 375px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    color: #888;
    position: absolute;
    left: calc(10% - 16px);
    left: -webkit-calc(10% - 16px);
    top:calc(50% - 180px);
    top:-webkit-calc(50% - 180px);
}
/*大图背景容器*/
.dm_panel {
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,1);
    text-align: center;
    z-index: 1001;
    display: none;
}
#wrapper_panel {
    bottom: 0px;
}
#dm_panel_content_image {
    max-width: 100%;
    /*width: 50%;*/
    /*height: 2000px;*/
    /*position: relative;*/
    dispaly:block;
    margin:0 auto;
}
#dm_panel_content_button {
    width: 120px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    position: fixed;
    left: calc(50% - 60px);
    left: -webkit-calc(50% - 60px);
    bottom: 16px;
    color:white;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    /*opacity: 0.5;*/
    border: 1px solid white;
    border-radius: 4px;
    z-index: 1001;
}
#dm_panel_content_button:active {
    opacity: 0.6;
}
.dm_anim_transition {
    transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
}
.dm_align_center{
    text-align: center;
}
.dm_button_image {
    width: 24px;
    height: 24px;
}
.dm_button_image:active {
    opacity:0.6;
}
/*底部工具栏*/
.dm_toolbar_button {
    width: 40px;
    height: 32px;
    padding: 10px 0 0;
    margin: 0 2px;
    position: absolute;
    text-align: center;
}
/*p表示position
*前边0表示左边,1表示右边
*/
.dm_toolbar_button[p='0_0'] {
    left:0;
}
.dm_toolbar_button[p='1_0'] {
    right:0;
}
.dm_toolbar_button[p='1_1'] {
    right:40px;
}
/*发送按钮*/
#dm_btn_send {
    width: 40px;
    height: 32px;
    line-height: 32px;
    position: absolute;
    right: 0;
    text-align: center;
}
#dm_btn_send div {
    width: 36px;
    height: 24px;
    line-height: 24px;
    padding: 0;
    background: #ff5455;
    color: white;
    font-size: 12px;
    text-align: center;
    border-radius: 2px;
}
#dm_btn_send div:active {
    opacity: 0.5;
}

#dm_input {
    min-height: 18px;
    max-height: 54px;
    line-height: 18px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: white;
    position: absolute;
    top: 6px;
    left: 46px;
    padding: 6px 4px;
    font-size: 14px;
    color: #888;
    text-align: left;
    overflow: auto;
}
#dm_input[pt="1"] {
    width: calc(100% - 102px);
    width: -webkit-calc(100% - 102px);
}
#dm_input[pt="2"] {
    width: calc(100% - 142px);
    width: -webkit-calc(100% - 142px);
}
#dm_input_file {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
/*底部面板*/
.dm_panel_bottom {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    background: #f5f5f5;
}
.dm_panel_bottom table {
    width: 100%;
    position: absolute;
    left:0;
    z-index: 1;
}
.dm_panel_bottom table[col="1"] {
    width: 25%;
}
.dm_panel_bottom table[col="2"] {
    width: 50%;
}
/*底部操作*/
.dm_panel_bottom table[type="op"]{
    height: 90px;
    bottom: -90px;
}
.dm_panel_bottom_op_item {
    height: 100%;
    position: relative;
    text-align: center;
}
.dm_panel_bottom_op_item:active {
    opacity: 0.6;
}
.dm_panel_bottom_op_item img {
    width: 20px;
    height: 20px;
    position: relative;
    top: 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 12px;
    background: #fafafa;

}
.dm_panel_bottom_op_item span {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 10px;
    text-align: center;
    font-size: 12px;
    color: #999;
}
/*底部表情*/
.dm_panel_bottom table[type="emoji"]{
    max-width: 375px;
    height: 160px;
    bottom: -160px;
}
.dm_panel_bottom_emoji_item {
    text-align: center;
}
.dm_panel_bottom table.dm_show{
    bottom: 0px;
}
/*底部操作面板弹出时*/
.dm_footer.dm_show_panel_op {
    bottom: 90px;
}
#wrapper.dm_show_panel_op {
    bottom: 124px;
}
/*底部表情面板弹出时*/
.dm_footer.dm_show_panel_emoji {
    bottom: 160px;
}
#wrapper.dm_show_panel_emoji {
    bottom: 204px;
}

/*对话*/
.dm_dialog {
    padding: 16px 10px;
    position: relative;
    margin: 2px;
}
/*对话头像*/
.dm_dialog_container_avatar {
    width: 80px;
    height: 76px;
    position: absolute;
}
.dm_dialog_container_avatar img {
    width: 54px;
    height: 54px;
    position: absolute;
    left: 13px;
    border-radius: 32px;
}
.dm_dialog_container_avatar span {
    width: 100%;
    font-size: 14px;
    color: #aaa;
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: center;
}
/*对话内容*/
.dm_dialog_container_content {
    max-width: calc(100% - 148px);
    max-width: -webkit-calc(100% - 148px);
    position: absolute;
    border: 1px solid #a9d0fe;
    border-radius: 6px;
    padding: 10px 6px;
}
.dm_dialog_container_content[pt="2"] {
    border: 1px solid #f8d8d8;
}
.dm_dialog_container_content:active {
    opacity: 0.6;
}
.dm_dialog_arrow {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 22px;
}
/*对话时间*/
.dm_dialog_content_date {
    color: #72abdc;
    font-size: 12px;
}
[pt="2"] .dm_dialog_content_date {
    color: #fb5360;
}
/*对话内容
*包括文本/图片/单据下载(链接)等
*/
.dm_dialog_content_text {
    color: #888;
    font-size: 16px;
    line-height: 20px;
    margin-top: 8px;
    word-wrap:break-word;
}
/*单据下载*/
.dm_dialog_content_text li {
    margin: 6px 0;
}
/*单据下载中的文本描述*/
.dm_dialog_content_text a {
    color: #ff5455;
    font-size: 14px;
}
/*聊天中的图片*/
.dm_dialog_content_text img {
    max-width: 100px;
    max-height: 44px;
}

/*左侧对话*/
.dm_dialog_left .dm_dialog_container_avatar {
    left:0;
}
.dm_dialog_left .dm_dialog_container_content {
    background: #e8f5fe;
    left: 84px;
}
.dm_dialog_left .dm_dialog_container_content[pt="2"] {
    background: #fff3f2;
    left: 84px;
}
.dm_dialog_left .dm_dialog_arrow {
    left: -8px;
}
/*右侧对话*/
.dm_dialog_right .dm_dialog_container_avatar {
    right:0;
}
.dm_dialog_right .dm_dialog_container_content {
    background: white;
    right: 84px;
}
.dm_dialog_right .dm_dialog_arrow {
    right: -8px;
}

/*退出时弹出评价*/
/*顶部*/
.dm_alert_evalue_top {
    text-align: center;
    margin-top: 10px;
}
.dm_alert_evalue_top>img {
    width: 74px;
    height: 74px;
    float: left;
}
.dm_alert_evalue_top>div {
    padding: 20px 0 0 0;
}
.dm_alert_evalue_top>div form {
    margin-top: 16px;
}
.dm_alert_evalue_top>div form input {
    width: 24px;
    height: 24px;
    border: 1px solid #aaa;
    border-radius: 12px;
}
.dm_alert_evalue_top>div form input:checked {
    background:url(../image/radio_checked.svg) no-repeat;
    background-origin: content-box;
    background-size: 24px 24px;
    border: 0;
}
.dm_alert_evalue_top>div form label {
    margin: 0 16px 0 6px;
}
/*中间*/
.dm_alert_evalue_middle {
    margin-top: 28px;
    position: relative;
}
.dm_alert_evalue_middle p{
    margin-left: 4px;
}
#dm_input_evalue{
    width: calc(100% - 16px);
    width: -webkit-calc(100% - 16px);
    height: 54px;
    line-height: 18px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 10px;
    text-align: left;
    color: #aaa;
    font-size: 14px;
}

/*底部*/
.dm_alert_evalue_bottom {
    margin: 30px 0 20px;
    text-align: center;
}
.dm_alert_evalue_bottom div {
    width: 112px;
    height: 33px;
    line-height: 33px;
    display: inline-block;
    border-radius: 17px;
    background: #ff5455;
    color: white;
    font-size: 16px;
}
.dm_alert_evalue_bottom div:first-child {
    margin-right: 24px;
}